package org.example.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author yu
 */ // 标识为 Spring Boot 应用
@SpringBootApplication
// 开启 Nacos 服务注册发现（Spring Cloud Alibaba 2021 版本可省略，但显式添加更清晰）
@EnableDiscoveryClient
public class ProviderDemoApplication {
    public static void main(String[] args) {
        // 启动服务
        SpringApplication.run(ProviderDemoApplication.class, args);
    }
}